package com.sh.dc.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class CalcConfig {

    @Value("${calc.endpoint}")
    private String endpoint;

    @Value("${calc.operator-parse}")
    private String operatorParam;

    @Value("${calc.algo-param-parse}")
    private String algoParseParam;

    public String getOperatorParseUrl() {
        return endpoint + operatorParam;
    }

    public String getAlgoParseParamUrl() {
        return endpoint + algoParseParam;
    }

}
